package com.zhanglu.fun.configuration;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.config.server.EnableConfigServer;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

/**
 * @author zhanglu
 * @description
 *              http请求地址和资源文件映射如下:
 *              /{application}/{profile}[/{label}]
 *              /{application}-{profile}.yml
 *              /{label}/{application}-{profile}.yml
 *              /{application}-{profile}.properties
 *              /{label}/{application}-{profile}.properties
 *
 *              其中application是服务名称,profile是开发环境(比如dev、pd),label是仓库分支。已经配置
 * @date 2017/10/24 20:58
 */
@SpringBootApplication
@EnableEurekaClient
@EnableConfigServer
public class Boot {
    public static void main(String[] args) {
        SpringApplication.run(Boot.class, args);
    }
}
